package uk.org.fuzelogik.eldaw.wicket;

import org.apache.wicket.Request;
import org.apache.wicket.protocol.http.WebSession;

import uk.org.fuzelogik.eldaw.auth.IAuthenticationStrategy;


/**
 * Default implementation of the authenticated session; simply extends
 * <code>WebSession</code> and stores an {@link IAuthenticationStrategy} in a
 * member variable.
 * 
 * @author cgdavies
 */
public class AuthenticatedWebSession extends WebSession implements
	IAuthenticatedSession
{
	private IAuthenticationStrategy m_authStrategy;

	public AuthenticatedWebSession( Request request )
	{
		super( request );
	}

	public IAuthenticationStrategy getAuthenticationStrategy()
	{
		return m_authStrategy;
	}

	public void setAuthenticationStrategy( IAuthenticationStrategy strategy )
	{
		m_authStrategy = strategy;
	}
}
